\hypertarget{classeffective__ensemble}{\section{effective\-\_\-ensemble \-Class \-Reference}
\label{classeffective__ensemble}\index{effective\-\_\-ensemble@{effective\-\_\-ensemble}}
}
\subsection*{\-Public \-Member \-Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{classeffective__ensemble_aab2c28e0fa671b3de5621637c8248aba}{effective\-\_\-ensemble} (const \hyperlink{classeffective__ensemble}{effective\-\_\-ensemble} \&eff)
\item 
\hyperlink{classeffective__ensemble_a219e1442900e26006e0ca536bf930f65}{effective\-\_\-ensemble} (int no\-\_\-of\-\_\-states, int dim\-\_\-of\-\_\-\-H)
\item 
\hyperlink{classeffective__ensemble_ac3b36af5210e393e432ccff484f0d120}{effective\-\_\-ensemble} (matrix$<$ std\-::complex$<$ double $>$ $>$ mat, vector$<$ double $>$ vec, vector$<$ int $>$ o)
\item 
\hyperlink{classeffective__ensemble}{effective\-\_\-ensemble} \& \hyperlink{classeffective__ensemble_a57c715c98a4a53fe946b397ac41cf3e6}{operator=} (const \hyperlink{classeffective__ensemble}{effective\-\_\-ensemble} eff)
\item 
vector$<$ std\-::complex$<$ double $>$ $>$ \hyperlink{classeffective__ensemble_a64fa3caea60b60d628cfb83620714184}{get\-\_\-state} (int alpha)
\item 
void \hyperlink{classeffective__ensemble_ac1f6a31d665e8b8c6b8b7ec933426c5f}{set\-\_\-state} (int alpha, vector$<$ std\-::complex$<$ double $>$ $>$ vec)
\item 
void \hyperlink{classeffective__ensemble_a5de7fb1227e8ae7148a43358f2db86a6}{set\-\_\-\-P} (vector$<$ double $>$ p)
\item 
double \hyperlink{classeffective__ensemble_a741ddc60abfe7d848042f4417e37dd1a}{\-P} (int alpha)
\item 
int \hyperlink{classeffective__ensemble_acca453c9c147022c4a922bb39f7f54a2}{get\-\_\-dim} ()
\item 
vector$<$ double $>$ \hyperlink{classeffective__ensemble_ae26ba337aa9bf150dad65a982a8a14fd}{\-P} ()
\item 
matrix$<$ std\-::complex$<$ double $>$ $>$ \hyperlink{classeffective__ensemble_a2330d34a5a9099311823eb1449e03c62}{rho} ()
\item 
int \hyperlink{classeffective__ensemble_a687a5dcadcdc6966be58146fac5f9054}{get\-\_\-number\-\_\-of\-\_\-states} ()
\item 
vector$<$ std\-::complex$<$ double $>$ $>$ \hyperlink{classeffective__ensemble_a4888b906153e27ce839f8fc3c26c254b}{rho\-\_\-vec} ()
\item 
int \hyperlink{classeffective__ensemble_ac1ab91b9846a1f5250b2ba99b85238f3}{occupancy} (int alpha)
\item 
vector$<$ int $>$ \hyperlink{classeffective__ensemble_a8abf0c99cca446b7c9332f5298eba989}{occupancy} ()
\end{DoxyCompactItemize}


\subsection{\-Constructor \& \-Destructor \-Documentation}
\hypertarget{classeffective__ensemble_aab2c28e0fa671b3de5621637c8248aba}{\index{effective\-\_\-ensemble@{effective\-\_\-ensemble}!effective\-\_\-ensemble@{effective\-\_\-ensemble}}
\index{effective\-\_\-ensemble@{effective\-\_\-ensemble}!effective_ensemble@{effective\-\_\-ensemble}}
\subsubsection[{effective\-\_\-ensemble}]{\setlength{\rightskip}{0pt plus 5cm}{\bf effective\-\_\-ensemble\-::effective\-\_\-ensemble} (
\begin{DoxyParamCaption}
\item[{const {\bf effective\-\_\-ensemble} \&}]{eff}
\end{DoxyParamCaption}
)}}\label{classeffective__ensemble_aab2c28e0fa671b3de5621637c8248aba}
copy constructor


\begin{DoxyParams}{\-Parameters}
{\em eff} & reference to object type effective\-\_\-ensebmle \\
\hline
\end{DoxyParams}
\hypertarget{classeffective__ensemble_a219e1442900e26006e0ca536bf930f65}{\index{effective\-\_\-ensemble@{effective\-\_\-ensemble}!effective\-\_\-ensemble@{effective\-\_\-ensemble}}
\index{effective\-\_\-ensemble@{effective\-\_\-ensemble}!effective_ensemble@{effective\-\_\-ensemble}}
\subsubsection[{effective\-\_\-ensemble}]{\setlength{\rightskip}{0pt plus 5cm}{\bf effective\-\_\-ensemble\-::effective\-\_\-ensemble} (
\begin{DoxyParamCaption}
\item[{int}]{no\-\_\-of\-\_\-states, }
\item[{int}]{dim\-\_\-of\-\_\-\-H}
\end{DoxyParamCaption}
)}}\label{classeffective__ensemble_a219e1442900e26006e0ca536bf930f65}
constructor


\begin{DoxyParams}{\-Parameters}
{\em no\-\_\-of\-\_\-states} & number of states in the effective ensemble \\
\hline
{\em dim\-\_\-of\-\_\-\-H} & dimension of the \-Hilbert space \\
\hline
\end{DoxyParams}
\hypertarget{classeffective__ensemble_ac3b36af5210e393e432ccff484f0d120}{\index{effective\-\_\-ensemble@{effective\-\_\-ensemble}!effective\-\_\-ensemble@{effective\-\_\-ensemble}}
\index{effective\-\_\-ensemble@{effective\-\_\-ensemble}!effective_ensemble@{effective\-\_\-ensemble}}
\subsubsection[{effective\-\_\-ensemble}]{\setlength{\rightskip}{0pt plus 5cm}{\bf effective\-\_\-ensemble\-::effective\-\_\-ensemble} (
\begin{DoxyParamCaption}
\item[{matrix$<$ std\-::complex$<$ double $>$ $>$}]{mat, }
\item[{vector$<$ double $>$}]{vec, }
\item[{vector$<$ int $>$}]{o}
\end{DoxyParamCaption}
)}}\label{classeffective__ensemble_ac3b36af5210e393e432ccff484f0d120}
constructor


\begin{DoxyParams}{\-Parameters}
{\em mat} & d x n matrix$<$std\-::complex$<$double$>$ $>$ of the states. d is the dimenstion of \-Hilbert space and n is the number of the states. \\
\hline
{\em vec} & vector$<$double$>$ of probabilities of length n. \\
\hline
\end{DoxyParams}


\subsection{\-Member \-Function \-Documentation}
\hypertarget{classeffective__ensemble_acca453c9c147022c4a922bb39f7f54a2}{\index{effective\-\_\-ensemble@{effective\-\_\-ensemble}!get\-\_\-dim@{get\-\_\-dim}}
\index{get\-\_\-dim@{get\-\_\-dim}!effective_ensemble@{effective\-\_\-ensemble}}
\subsubsection[{get\-\_\-dim}]{\setlength{\rightskip}{0pt plus 5cm}int {\bf effective\-\_\-ensemble\-::get\-\_\-dim} (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{classeffective__ensemble_acca453c9c147022c4a922bb39f7f54a2}
\-Return the number of states in the ensemble.

\begin{DoxyReturn}{\-Returns}
number of states in the ensemble type int. 
\end{DoxyReturn}
\hypertarget{classeffective__ensemble_a687a5dcadcdc6966be58146fac5f9054}{\index{effective\-\_\-ensemble@{effective\-\_\-ensemble}!get\-\_\-number\-\_\-of\-\_\-states@{get\-\_\-number\-\_\-of\-\_\-states}}
\index{get\-\_\-number\-\_\-of\-\_\-states@{get\-\_\-number\-\_\-of\-\_\-states}!effective_ensemble@{effective\-\_\-ensemble}}
\subsubsection[{get\-\_\-number\-\_\-of\-\_\-states}]{\setlength{\rightskip}{0pt plus 5cm}int {\bf effective\-\_\-ensemble\-::get\-\_\-number\-\_\-of\-\_\-states} (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{classeffective__ensemble_a687a5dcadcdc6966be58146fac5f9054}
\-Return the number of states in the ensemble.

\begin{DoxyReturn}{\-Returns}
number of states in the ensemble type int. 
\end{DoxyReturn}
\hypertarget{classeffective__ensemble_a64fa3caea60b60d628cfb83620714184}{\index{effective\-\_\-ensemble@{effective\-\_\-ensemble}!get\-\_\-state@{get\-\_\-state}}
\index{get\-\_\-state@{get\-\_\-state}!effective_ensemble@{effective\-\_\-ensemble}}
\subsubsection[{get\-\_\-state}]{\setlength{\rightskip}{0pt plus 5cm}vector$<$ std\-::complex$<$ double $>$ $>$ {\bf effective\-\_\-ensemble\-::get\-\_\-state} (
\begin{DoxyParamCaption}
\item[{int}]{alpha}
\end{DoxyParamCaption}
)}}\label{classeffective__ensemble_a64fa3caea60b60d628cfb83620714184}
\-Obtain a state vector in the effective ensemble.


\begin{DoxyParams}{\-Parameters}
{\em alpha} & index of the state vector\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{\-Returns}
vector$<$std\-::complex$<$double$>$ a state vector 
\end{DoxyReturn}
\hypertarget{classeffective__ensemble_ac1ab91b9846a1f5250b2ba99b85238f3}{\index{effective\-\_\-ensemble@{effective\-\_\-ensemble}!occupancy@{occupancy}}
\index{occupancy@{occupancy}!effective_ensemble@{effective\-\_\-ensemble}}
\subsubsection[{occupancy}]{\setlength{\rightskip}{0pt plus 5cm}int {\bf effective\-\_\-ensemble\-::occupancy} (
\begin{DoxyParamCaption}
\item[{int}]{alpha}
\end{DoxyParamCaption}
)}}\label{classeffective__ensemble_ac1ab91b9846a1f5250b2ba99b85238f3}
\-Get occupation of state alpha


\begin{DoxyParams}{\-Parameters}
{\em alpha} & index of the state\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{\-Returns}
$<$int$>$ number of ensemble members in state $\vert \psi_\alpha \rangle$. 
\end{DoxyReturn}
\hypertarget{classeffective__ensemble_a8abf0c99cca446b7c9332f5298eba989}{\index{effective\-\_\-ensemble@{effective\-\_\-ensemble}!occupancy@{occupancy}}
\index{occupancy@{occupancy}!effective_ensemble@{effective\-\_\-ensemble}}
\subsubsection[{occupancy}]{\setlength{\rightskip}{0pt plus 5cm}vector$<$int$>$ {\bf effective\-\_\-ensemble\-::occupancy} (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{classeffective__ensemble_a8abf0c99cca446b7c9332f5298eba989}
\-Ge all occupation numbers

\begin{DoxyReturn}{\-Returns}
vector$<$int$>$ 
\end{DoxyReturn}
\hypertarget{classeffective__ensemble_a57c715c98a4a53fe946b397ac41cf3e6}{\index{effective\-\_\-ensemble@{effective\-\_\-ensemble}!operator=@{operator=}}
\index{operator=@{operator=}!effective_ensemble@{effective\-\_\-ensemble}}
\subsubsection[{operator=}]{\setlength{\rightskip}{0pt plus 5cm}{\bf effective\-\_\-ensemble} \& effective\-\_\-ensemble\-::operator= (
\begin{DoxyParamCaption}
\item[{const {\bf effective\-\_\-ensemble}}]{eff}
\end{DoxyParamCaption}
)}}\label{classeffective__ensemble_a57c715c98a4a53fe946b397ac41cf3e6}
\-Copy constructor


\begin{DoxyParams}{\-Parameters}
{\em eff} & object of type effective ensemble.\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{\-Returns}
reference to object type effective ensemble. 
\end{DoxyReturn}
\hypertarget{classeffective__ensemble_a741ddc60abfe7d848042f4417e37dd1a}{\index{effective\-\_\-ensemble@{effective\-\_\-ensemble}!\-P@{\-P}}
\index{\-P@{\-P}!effective_ensemble@{effective\-\_\-ensemble}}
\subsubsection[{\-P}]{\setlength{\rightskip}{0pt plus 5cm}double {\bf effective\-\_\-ensemble\-::\-P} (
\begin{DoxyParamCaption}
\item[{int}]{alpha}
\end{DoxyParamCaption}
)}}\label{classeffective__ensemble_a741ddc60abfe7d848042f4417e37dd1a}
\-Return a probability of a state in the ensemble.


\begin{DoxyParams}{\-Parameters}
{\em alpha} & index of the particular state.\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{\-Returns}
probability of $\vert \psi_\alpha \rangle$ in the ensemble. 
\end{DoxyReturn}
\hypertarget{classeffective__ensemble_ae26ba337aa9bf150dad65a982a8a14fd}{\index{effective\-\_\-ensemble@{effective\-\_\-ensemble}!\-P@{\-P}}
\index{\-P@{\-P}!effective_ensemble@{effective\-\_\-ensemble}}
\subsubsection[{\-P}]{\setlength{\rightskip}{0pt plus 5cm}vector$<$ double $>$ {\bf effective\-\_\-ensemble\-::\-P} (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{classeffective__ensemble_ae26ba337aa9bf150dad65a982a8a14fd}
\-Return a probability vector.

\begin{DoxyReturn}{\-Returns}
vector$<$double$>$ containing probabilities of the different states in the ensemble. 
\end{DoxyReturn}
\hypertarget{classeffective__ensemble_a2330d34a5a9099311823eb1449e03c62}{\index{effective\-\_\-ensemble@{effective\-\_\-ensemble}!rho@{rho}}
\index{rho@{rho}!effective_ensemble@{effective\-\_\-ensemble}}
\subsubsection[{rho}]{\setlength{\rightskip}{0pt plus 5cm}matrix$<$ std\-::complex$<$ double $>$ $>$ {\bf effective\-\_\-ensemble\-::rho} (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{classeffective__ensemble_a2330d34a5a9099311823eb1449e03c62}
\-Return the density matrix of the system $ \rho=\sum_\alpha p_\alpha\vert\psi_\alpha\rangle\langle\psi_ \alpha\vert$. \begin{DoxyReturn}{\-Returns}
matrix$<$std\-::complex$<$double$>$ $>$ rho 
\end{DoxyReturn}
\hypertarget{classeffective__ensemble_a4888b906153e27ce839f8fc3c26c254b}{\index{effective\-\_\-ensemble@{effective\-\_\-ensemble}!rho\-\_\-vec@{rho\-\_\-vec}}
\index{rho\-\_\-vec@{rho\-\_\-vec}!effective_ensemble@{effective\-\_\-ensemble}}
\subsubsection[{rho\-\_\-vec}]{\setlength{\rightskip}{0pt plus 5cm}vector$<$ std\-::complex$<$ double $>$ $>$ {\bf effective\-\_\-ensemble\-::rho\-\_\-vec} (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{classeffective__ensemble_a4888b906153e27ce839f8fc3c26c254b}
\-Return density matrix as a vector $\vec{\rho}$. mapping is $\vec{\rho}_{i*d+j}=\rho_{i,j}$, where $d$ is the dimension of the \-Hilbert space.

\begin{DoxyReturn}{\-Returns}
vector$<$std\-::complex$<$double$>$ $>$ 
\end{DoxyReturn}
\hypertarget{classeffective__ensemble_a5de7fb1227e8ae7148a43358f2db86a6}{\index{effective\-\_\-ensemble@{effective\-\_\-ensemble}!set\-\_\-\-P@{set\-\_\-\-P}}
\index{set\-\_\-\-P@{set\-\_\-\-P}!effective_ensemble@{effective\-\_\-ensemble}}
\subsubsection[{set\-\_\-\-P}]{\setlength{\rightskip}{0pt plus 5cm}void {\bf effective\-\_\-ensemble\-::set\-\_\-\-P} (
\begin{DoxyParamCaption}
\item[{vector$<$ double $>$}]{p}
\end{DoxyParamCaption}
)}}\label{classeffective__ensemble_a5de7fb1227e8ae7148a43358f2db86a6}
\-Set the probability vector


\begin{DoxyParams}{\-Parameters}
{\em p} & vector$<$double$>$ of probabilities \\
\hline
\end{DoxyParams}
\hypertarget{classeffective__ensemble_ac1f6a31d665e8b8c6b8b7ec933426c5f}{\index{effective\-\_\-ensemble@{effective\-\_\-ensemble}!set\-\_\-state@{set\-\_\-state}}
\index{set\-\_\-state@{set\-\_\-state}!effective_ensemble@{effective\-\_\-ensemble}}
\subsubsection[{set\-\_\-state}]{\setlength{\rightskip}{0pt plus 5cm}void {\bf effective\-\_\-ensemble\-::set\-\_\-state} (
\begin{DoxyParamCaption}
\item[{int}]{alpha, }
\item[{vector$<$ std\-::complex$<$ double $>$ $>$}]{vec}
\end{DoxyParamCaption}
)}}\label{classeffective__ensemble_ac1f6a31d665e8b8c6b8b7ec933426c5f}
\-Set a particular state vector.


\begin{DoxyParams}{\-Parameters}
{\em alpha} & index of state vector \\
\hline
{\em vec} & state vector $<$std\-::complex$<$double$>$ $>$ \\
\hline
\end{DoxyParams}


\-The documentation for this class was generated from the following files\-:\begin{DoxyCompactItemize}
\item 
include/\hyperlink{effective__ensemble_8hpp}{effective\-\_\-ensemble.\-hpp}\item 
src/effective\-\_\-ensemble.\-cpp\end{DoxyCompactItemize}
